All Packages Class Hierarchy This Package Previous Next Index
Class javax.media.j3d.DepthComponentFloat
java.lang.Object
|
+----javax.media.j3d.SceneGraphObject
|
+----javax.media.j3d.NodeComponent
|
+----javax.media.j3d.DepthComponent
|
+----javax.media.j3d.DepthComponentFloat
- public class DepthComponentFloat
- extends DepthComponent
A 2D array of depth (Z) values in floating point format in the range [0,1].
A value of 0.0 indicates the closest Z value to the user while a value of
1.0 indicates the farthest Z value.
-
DepthComponentFloat(int, int)
- Constructs a new floating-point depth (z-buffer) component object with
the specified width and height.
-
getDepthData(float[])
- Copies the depth data from this object to the specified array.
-
setDepthData(float[])
- Copies the specified depth data to this object.
DepthComponentFloat
public DepthComponentFloat(int width,
int height)
- Constructs a new floating-point depth (z-buffer) component object with
the specified width and height.
- Parameters:
- width - the width of the array of depth values
- height - the height of the array of depth values
setDepthData
public void setDepthData(float depthData[])
- Copies the specified depth data to this object.
- Parameters:
- depthData - array of floats containing the depth data
getDepthData
public void getDepthData(float depthData[])
- Copies the depth data from this object to the specified array.
- Parameters:
- depthData - array of floats that will receive a copy of
the depth data
All Packages Class Hierarchy This Package Previous Next Index